import request from '@/utils/aliyunRequest';

const mallProductApi = {};

mallProductApi.page = (params) => {
	return request({
		url: '/aliyun-api/mall-product/page',
		method: 'post',
		data: params,
	})
}
mallProductApi.add = (params) => {
	return request({
		url: '/aliyun-api/mall-product',
		method: 'post',
		data: params,
	})
}
mallProductApi.update = (params) => {
	return request({
		url: '/aliyun-api/mall-product',
		method: 'put',
		data: params,
	})
}
mallProductApi.get = (id) => {
	return request({
		url: '/aliyun-api/mall-product/' + id,
		method: 'get',
	})
}
mallProductApi.delete = (id) => {
	return request({
		url: '/aliyun-api/mall-product/' + id,
		method: 'delete',
	})
}

export default mallProductApi